90306: xfi:fact-has-explicit-dimension
Documentation
Owners
Name | Affiliation | Start | End | |
---|---|---|---|---|
Herm Fischer |
|
fischer@markv.com | 06-02-2008 at 12:55:00 |
References
Test Case Variations
V-01
Test correct location dimension for Mount Kilimanjaro
Documentation
Inputs
- schema: fact-explicit-dimension-value.xsd
- linkbase: fact-explicit-dimension-value-definition.xml
- instance: fact-explicit-dimension-value-instance1.xml (DTS Discovery starting point) (ID=V01)
-
Function Call:
xfi:fact-has-explicit-dimension( /xbrli:xbrl/t:Peak[./text() eq 'Mount Kilimanjaro'], QName('http://xbrl.org/formula/conformance/example','t:Location') )
(against file V01)
Outputs
-
Result test:
$result instance of xs:boolean and count( $result ) eq 1 and $result eq true()
V-02
Test default location dimension for Vinson Massif
Documentation
Inputs
- schema: fact-explicit-dimension-value.xsd
- linkbase: fact-explicit-dimension-value-definition.xml
- instance: fact-explicit-dimension-value-instance1.xml (DTS Discovery starting point) (ID=V02)
-
Function Call:
xfi:fact-has-explicit-dimension( /xbrli:xbrl/t:Peak[./text() eq 'Vinson Massif'], QName('http://xbrl.org/formula/conformance/example','t:Location') )
(against file V02)
Outputs
-
Result test:
$result instance of xs:boolean and count( $result ) eq 1 and $result eq true()
V-03
Location dimension for AtmosphericPhenomenon concept Aurora Borealis (whose hypercube lacks the location dimension).
In a previous version this was false, but given that the dimension default applies globally even when not
in the hypercube, the default dimension is returned anyway, so result here is now true.
Documentation
Inputs
- schema: fact-explicit-dimension-value.xsd
- linkbase: fact-explicit-dimension-value-definition.xml
- instance: fact-explicit-dimension-value-instance1.xml (DTS Discovery starting point) (ID=V03)
-
Function Call:
xfi:fact-has-explicit-dimension( /xbrli:xbrl/t:AtmosphericPhenomenon[./text() eq 'Aurora Borealis'], QName('http://xbrl.org/formula/conformance/example','t:Location') )
(against file V03)
Outputs
-
Result test:
$result instance of xs:boolean and count( $result ) eq 1 and $result eq true()
V-04
Error of concept argument which is not a dimension
Documentation
Inputs
- schema: fact-explicit-dimension-value.xsd
- linkbase: fact-explicit-dimension-value-definition.xml
- instance: fact-explicit-dimension-value-instance1.xml (DTS Discovery starting point) (ID=V04)
-
Function Call:
xfi:fact-has-explicit-dimension( /xbrli:xbrl/t:Peak[./text() eq 'Mount Everest'], QName('http://xbrl.org/formula/conformance/example','t:Mars') )
(against file V04)
Outputs
- Error code: xfie:invalidExplicitDimensionQName
V-04a
Error of non-XBRL element argument as dimension argument
Documentation
Inputs
- schema: fact-explicit-dimension-value.xsd
- linkbase: fact-explicit-dimension-value-definition.xml
- instance: fact-explicit-dimension-value-instance1.xml (DTS Discovery starting point) (ID=V04a)
-
Function Call:
xfi:fact-has-explicit-dimension( /xbrli:xbrl/t:Peak[./text() eq 'Mount Everest'], QName('http://xbrl.org/formula/conformance/example','t:nonXbrlElement') )
(against file V04a)
Outputs
- Error code: xfie:invalidExplicitDimensionQName
V-05
Dimension can be located in either segment or scenario, for this variation appears in the segment, to test that function is
looking in only desired location for value.
Documentation
Inputs
- schema: bi-locational-dim-concepts.xsd
- linkbase: bi-locational-dim-definition.xml
- instance: bi-locational-seg-explicit-instance.xml (DTS Discovery starting point) (ID=V05)
-
Function Call:
xfi:fact-has-explicit-dimension( /xbrli:xbrl/t:PriItem1[1], QName('http://xbrl.org/formula/conformance/example','t:ExplDim1') )
(against file V05)
Outputs
-
Result test:
$result instance of xs:boolean and count( $result ) eq 1 and $result eq true()
V-06
Dimension can be located in either segment or scenario but for this variation appears in the scenario instead of segment,
to test that function is looking in only both locations for value.
Documentation
Inputs
- schema: bi-locational-dim-concepts.xsd
- linkbase: bi-locational-dim-definition.xml
- instance: bi-locational-scen-explicit-instance.xml (DTS Discovery starting point) (ID=V06)
-
Function Call:
xfi:fact-has-explicit-dimension( /xbrli:xbrl/t:PriItem1[1], QName('http://xbrl.org/formula/conformance/example','t:ExplDim1') )
(against file V06)
Outputs
-
Result test:
$result instance of xs:boolean and count( $result ) eq 1 and $result eq true()
Revisions
Name | On | Details |
---|---|---|
Herm Fischer | 01-09-2008 at 00:00:00 |
|
Herm Fischer | 02-09-2008 at 00:00:00 |
|
Herm Fischer | 18-03-2011 at 16:00:00 |
|